package com.tn.exam.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * SysDuty entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sys_duty")
public class SysDuty extends BaseEntity implements java.io.Serializable {

	// Fields

	private Integer dutyId;
	private String dutyName;
	private String dutyDuty;
	private Date dutyCreateTime;
	private Date dutyModifyTime;

	// Constructors

	/** default constructor */
	public SysDuty() {
	}

	/** minimal constructor */
	public SysDuty(String dutyName) {
		this.dutyName = dutyName;
	}

	/** full constructor */
	public SysDuty(String dutyName, String dutyDuty, Date dutyCreateTime,
			Date dutyModifyTime) {
		this.dutyName = dutyName;
		this.dutyDuty = dutyDuty;
		this.dutyCreateTime = dutyCreateTime;
		this.dutyModifyTime = dutyModifyTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "duty_id", unique = true, nullable = false)
	public Integer getDutyId() {
		return this.dutyId;
	}

	public void setDutyId(Integer dutyId) {
		this.dutyId = dutyId;
	}

	@Column(name = "duty_name", nullable = false, length = 50)
	public String getDutyName() {
		return this.dutyName;
	}

	public void setDutyName(String dutyName) {
		this.dutyName = dutyName;
	}

	@Column(name = "duty_duty", length = 500)
	public String getDutyDuty() {
		return this.dutyDuty;
	}

	public void setDutyDuty(String dutyDuty) {
		this.dutyDuty = dutyDuty;
	}

	@Column(name = "duty_create_time", length = 19)
	public Date getDutyCreateTime() {
		return this.dutyCreateTime;
	}

	public void setDutyCreateTime(Date dutyCreateTime) {
		this.dutyCreateTime = dutyCreateTime;
	}

	@Column(name = "duty_modify_time", length = 19)
	public Date getDutyModifyTime() {
		return this.dutyModifyTime;
	}

	public void setDutyModifyTime(Date dutyModifyTime) {
		this.dutyModifyTime = dutyModifyTime;
	}

}